package com.wenda.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wenda.admin.entity.TbUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wenda
 * @since 2020-03-15
 */
@Repository
public interface UserMapper extends BaseMapper<TbUser> {
    @Select("select * from tb_user where user_name = #{name} AND password = #{password}")
    TbUser login(String name, String password);
}
